#{extends 'main.html' /}
#{set title:'SoftEduc' /}


<div id="form_container">
	
	<h1><a>Untitled Form</a></h1>
	<form id="form_169488" class="appnitro"  method="post" action="@{Alunos.atualizarAluno()}">
		<div class="form_description">
			<h2>Edição de Aluno</h2>
			
		</div>						
			<ul>
		   <input type="hidden" name = aluno.id value="${aluno.id}"/>
			 <input type="hidden" name = aluno.pessoa.id value="${aluno.pessoa.id}"/>
			
			<li id="li_1" >
		<label class="description" for="element_1">Nome </label>
		<div>
			<input id="element_1" name="aluno.pessoa.nome" class="element text large" type="text" maxlength="255" value="${aluno.pessoa.nome}"/> 
		</div> 
		</li>		<li id="li_2" >
		<label class="description" for="element_2">CPF
 		</label>
		<div>
			<input id="element_2" name="aluno.pessoa.cpfTitular" class="element text medium" type="text" maxlength="255" value="${aluno.pessoa.cpfTitular}" alt="cpf"/> 
		</div> 
		</li>		<li id="li_3" >
		<label class="description" for="element_3">RG </label>
		<div>
			<input id="element_3" name="aluno.pessoa.rg" class="element text medium" type="text" maxlength="255" value="${aluno.pessoa.rg}"/> 
		</div> 
		</li>		<li id="li_14" >
		
<label class="description" for="element_14">Nascimento </label>
 		<span>
	<input id="element_14_1" name="dd" class="element text" size="2" maxlength="2" value="${dia}" type="text"> /
			<label for="element_14_1">DD</label>
		</span>
		<span>
			<input id="element_14_2" name="mm" class="element text" size="2" maxlength="2" value="${mes}" type="text"> /
			<label for="element_14_2">MM</label>
		</span>
		<span>
	 		<input id="element_14_3" name="yyyy" class="element text" size="4" maxlength="4" value="${ano}" type="text">
			<label for="element_14_3">YYYY</label>
		</span>
	
		<span id="calendar_14">
			<img id="cal_img_14" class="datepicker" src="@{'/public/images/calendar.gif'}" alt="Pick a date.">	
		</span>
		<script type="text/javascript">
			Calendar.setup({
			inputField	 : "element_14_3",
			baseField    : "element_14",
			displayArea  : "calendar_14",
			button		 : "cal_img_14",
			ifFormat	 : "%B %e, %Y",
			onSelect	 : selectEuropeDate
			});
		</script>

		</li>
		<li id="li_12" >
		<label class="description" for="element_12">Sexo </label>
		<div>
		#{select 'aluno.pessoa.sexo', value:aluno.pessoa.sexo, id:'element_12', class:'element select small'}
			#{option 'Masculino'}Masculino#{/option}
			#{option 'Feminino'}Feminino#{/option}			
		#{/select}
				
		</div> 
		</li>		<li id="li_13" >
		<label class="description" for="element_13">Tipo de Aluno </label>
		<div>
		
		#{select 'aluno.tipoDeAluno', value:aluno.tipoDeAluno, id:'element_13', class:'element select small'}
			#{option 'Normal'}Normal#{/option}
			#{option 'Servidor'}Servidor#{/option}
			#{option 'Bolsista'}Bolsista#{/option}
		#{/select}
		
	</div> 
		</li>		

		<li id="li_15" >
		<label class="description" for="element_15">Telefone </label>
		<div>
			<input id="element_15" name="aluno.pessoa.telefone" class="element text medium" type="text" maxlength="255" value="${aluno.pessoa.telefone}" alt="phone"/> 
		</div> 
		
		 
		 		</li>		<li id="li_18" >
			<label class="description" for="element_18">Email </label>
		
		<div>
			<input id="element_18" name="aluno.pessoa.email" class="element text medium" type="text" maxlength="255" value="${aluno.pessoa.email}"/> 
		</div> 
		</li>
		 
		<li id="li_17" >
		<label class="description" for="element_17">Endereço </label>
		
		<div>
			<input id="element_17_1" name="aluno.pessoa.logradouro" class="element text large" value="${aluno.pessoa.logradouro}" type="text">
			<label for="element_17_1">Rua</label>
		</div>
	
		<div class="left">
			<input id="element_17_2" name="aluno.pessoa.complemento" class="element text medium" value="${aluno.pessoa.complemento}" type="text">
			<label for="element_17_2">Complemento</label>
		</div>
		<div class="right">
			<input id="element_17_4" name="aluno.pessoa.numero" class="element text medium" value="${aluno.pessoa.numero}" type="text">
			<label for="element_17_4">Numero</label>
		</div>
		<div class="left">
			<input id="element_17_3" name="aluno.pessoa.cidade" class="element text medium" value="${aluno.pessoa.cidade}" type="text">
			<label for="element_17_3">Cidade</label>
		</div>
	
		<div class="right">
			<input id="element_17_4" name="aluno.pessoa.uf" class="element text medium" value="${aluno.pessoa.uf}" type="text" alt="aa">
			<label for="element_17_4">Estado</label>
		</div>
	
	<div class="left">
			<input id="element_17_5" name="aluno.pessoa.bairro" class="element text medium" maxlength="15" value="${aluno.pessoa.bairro}" type="text">
			<label for="element_17_5">Bairro</label>
		</div>
		
		<div class="right">
			<input id="element_17_5" name="aluno.pessoa.cep" class="element text medium" maxlength="15" value="${aluno.pessoa.cep}" type="text" alt="cep">
			<label for="element_17_5">CEP</label>
		</div>
		
		<li class="buttons">
			    <input type="hidden" name="form_id" value="169488" />
			    
				<input id="saveForm" class="button_text" type="submit" name="submit" value="Enviar" />
		</li>
			</ul>
	</form>
	</div>
	
	